# -*- coding: utf-8 -*-
from naoqi import *
import time
import math
import time
import almath
import new1
from new1 import ImageWidget
from PyQt4.QtGui import QWidget, QImage, QApplication, QPainter
from naoqi import ALProxy
import cv2
import numpy as np

IP = "192.168.1.8"  # Replace here with your NaoQi's IP address.
PORT = 9559
CameraID = 0

# Read IP address from first argument if any.
if len(sys.argv) > 1:
    IP = sys.argv[1]

# Read CameraID from second argument if any.
if len(sys.argv) > 2:
    CameraID = int(sys.argv[2])


app = QApplication(sys.argv)
myWidget = ImageWidget(IP, PORT, CameraID)

myWidget.show()
b = new1.a
print b
sys.exit(app.exec_())



